/*
In the example above, the while loop will run, as long i is smaller then twenty.
In the while loop there is an if statement that states that if i equals ten the while loop must stop (break).
*/

#include<stdio.h>

int main()
{
  int i;
  i = 0;

  while ( i < 20 )
  {
    i++;
    printf ("%d\n",i);
    if ( i == 10) /* The increment will not go over 10 dues to the break instruction */
    break;
  }

  continue_sample();
  return 0;
}




continue_sample()
	{
		int i;
		i = 0;
      while ( i < 20 )
     	{
     	  i++;
        printf("Print before continue.\n");
        continue;
        printf ("Print after continue.\n"); /* This line will never show up due to the continue */
     	}
   return 0;
	}

